<?php
	require "../runReplace.php";
?>
<p><strong>Toolbar</strong></p>
<p>New Page, Page Property, Image/Document insert, close &nbsp;</p>
  
<div id="accordion">
	[sql:select distinct com_group from _com]
    <h3><a href="#">[com_group]</a></h3>
	<div>
		[data:table="_com" where="com_group='{com_group}'"]
        <p>
		<a href="#" onClick="editInsertCom('[command]'); return false;">[command]</a>
		</p>
        [data_end]
	</div>
    [data_end]
</div>


<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>close</p>
  <label>
    <input type="button" name="button3" id="button3" value="Insert Text" onClick="editInsertText(); return false;">
    <br>
    <br>
<input type="button" name="button" id="button" value="Insert Table" onClick="editInsertTable(); return false;">
  </label>
</p>
<p>
  <input type="button" name="button" id="button" value="Insert Form" onClick="editInsertForm(); return false;">
  </label>
</p>
<p>
  <input type="button" name="button2" id="button2" value="Insert Image" onClick="editInsertImage(); return false;">
</p>
<p>
  <label>
    <input type="submit" name="button6" id="button6" value="Form Wizzard" onclick="showWizzard() ; return false;" />
  </label>
</p>
<p>
  <label>
    <input type="submit" name="button7" id="button7" value="Table Wizzard" onclick="showTableWizzard() ; return false;" />
  </label>
</p>
<p>Spezial Kommando einf&uuml;gen<br />

<select name="selectCom" id="selectCom">   
[data:table="snapol2_command" order="command"]
    <option value="[html]">[command]</option>
[data_end]
</select>
</p>
<p>
  <input type="button" name="button4" id="button4" value="insert com" onclick="editInsertCom(); return false;" />
</p>
<p><strong>Property</strong> </p>
<table width="281" border="1">
  <tr>
    <td>ID</td>
    <td><input type="text" name="edtId" id="edtId"></td>
  </tr>
  <tr>
    <td width="41">Value</td>
    <td width="224"><input type="text" name="edtValue" id="edtValue" onChange="$('#'+$('#edtId').attr('value')).attr('value', this.value);"></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Src</td>
    <td><input name="edtSrc" type="text" id="edtSrc" onChange="$('#'+$('#edtId').attr('value')).attr('src', this.value);"></td>
  </tr>
  <tr>
    <td>Table</td>
    <td><label>
      <input name="edtTable" type="text" id="edtTable">
    </label></td>
  </tr>
  <tr>
    <td>Order By</td>
    <td><input type="text" name="textfield2" id="textfield2"></td>
  </tr>
  <tr>
    <td>Limit</td>
    <td><input type="text" name="textfield3" id="textfield3"></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<p>
  <label>
    <input type="button" name="button5" id="button5" value="text ok" onClick="CKEDITOR.instances[editorId].destroy(); return false;">
  </label>
</p>
<div id="someDiv"></div>
